<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			.div1{
				width: 100px;
				height: 30px;
				border: 1px solid #ff0000;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}
			a:link{
				color: pink;
			}
		</style>
	</head>
	<body>
		<div class="div1">
			hahaha哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈
		</div>
		
		<input type="text" name="" id="" value="" />
		<button>提交</button>
		
		<a href="#">链接颜色</a>
		
	</body>
</html>
